package com.argticling.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by IntelliJ IDEA.
 * User: santor
 * Date: 04-oct-2010
 * Time: 21:20:23
 * To change this template use File | Settings | File Templates.
 */
@Entity
public class FavoriteArticle implements Persistable{

    private String articleId;
    private String userId;

    @Id
    @Column(name = "FAV_ART_ID")
    public String getId() {
        return articleId + userId;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public void setId(String id) {
    }

    @Column(name = "ARTICLE_ID")
    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    @Column(name = "USER_ID")        
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
